<?php
/**
 * 后台菜单配置
 *    'home' => [
 *       'name' => '首页',                // 菜单名称
 *       'icon' => 'icon-home',          // 图标 (class)
 *       'index' => 'index/index',         // 链接
 *     ],
 */
return [
    'index' => [
        'name' => '系统首页',
        'icon' => 'icon-home',
        'index' => 'index/index',
    ],
    'ditui.dtactive' => [
        'name' => '机构管理',
        'icon' => 'icon-wxapp',
        'color' => '#FFFF00',
        'isone' => true,
        'index' => 'ditui.dtactive/active',
    ],
    'ditui.dtseller' => [
        'name' => '地推专员',
        'icon' => 'icon-wxapp',
        'color' => '#FFFF00',
        'isone' => true,    //自定义字段，在基础控制器中修改，表示一级菜单的选中状态
        'index' => 'ditui.dtseller/index',
//        'uris' => [
//            'ditui.dtseller/addSeller',
//            'ditui.dtseller/addRemark',
//        ]
    ],
//    'ditui.dtuser' => [
//        'name' => '地推数据',
//        'icon' => 'icon-wxapp',
//        'color' => '#FFFF00',
//        'isone' => true,
//        'index' => 'ditui.dtuser/inline',
//    ],
    'ditui.dtzhuanhua' => [
        'name' => '地推数据',
        'icon' => 'icon-wxapp',
        'color' => '#00FF00',
        'isone' => true,
        'index' => 'ditui.dtzhuanhua/zhuanhua',
    ],
    'ditui.dtuserok' => [
        'name' => '学员管理',
        'icon' => 'icon-wxapp',
        'color' => '#00FF00',
        'isone' => true,
        'index' => 'ditui.dtuserok/index',
    ],
    'ditui.dtzidian' => [
        'name' => '数据配置',
        'icon' => 'icon-wxapp',
        'color' => '#FF0000',
        'isone' => true,
        'index' => 'ditui.dtzidian/zidian',
    ],
    /**
	'inout' => [
	    'name' => '用户引流',
	    'icon' => 'icon-user',
		'is_svg' => true,
	    'index' => 'inout.activity/index',
	    'submenu' => [
			[
			    'name' => '测试测试',
			    'index' => 'inout/index',
			    'uris' => [
			        'inout/index',
			        'inout/add',
			        'inout/edit',
			    ]
			],
            [
                'name' => '二级菜单22',
                'index' => 'inout/index',
            ],
	        [
	            'name' => '引流活动',
	            'active' => true,
	            'index' => 'inout.activity/index',
	            'submenu' => [
	                [
	                    'name' => '活动分类',
	                    'index' => 'inout.activity/type',
	                    'uris' => [
	                        'inout.activity/type',
	                        'inout.activity/typeadd',
	                        'inout.activity/typeedit',
	                    ]
	                ],
	                [
	                    'name' => '活动列表',
	                    'index' => 'inout.activity/index',
	                    'uris' => [
	                        'inout.activity/index',
	                        'inout.activity/add',
	                        'inout.activity/edit',
	                    ]
	                ],
	                [
	                    'name' => '抽奖活动',
	                    'index' => 'inout.award/index',
	                    'uris' => [

	                    ]
	                ],
                    [
	                    'name' => '抖音生态',
	                    'index' => 'inout.tiktok/ecology',
	                    'uris' => [
	
	                    ]
	                ],


                    
	            ]
	        ],
            [
	            'name' => '业务大厅',
	            'active' => true,
	            'index' => 'inout.promotion/index',
	            'submenu' => [
	                [
	                    'name' => '业务列表',
	                    'index' => 'inout.promotion/index',
	                    'uris' => [
	                        'inout.promotion/index',
	                        'inout.promotion/add',
	                        'inout.promotion/edit',
	                    ]
	                ]
	               
	            ]
	        ]
	    ]
	],
	*/
	'transform'=>[
		'name' => '有奖问答',
		'icon' => 'icon-application',
        'is_svg'=>true,
		'index' => 'transform.qa/type',
		'submenu' => [
			[
                'name' => '转化配置',
                'index' => 'transform.tags/index',
                'active' => true,
                'submenu' => [
                    [
                        'name' => '用户标签',
                        'index' => 'transform.tags/list',
                        'uris' => [
                            'transform.tags/list',  //如果要改变二级菜单样式，则必需加这一行
                        ]
                    ],
                ],
            ],
//            [
//                'name' => '企业微信',
//                'index' => 'transform.wechat/index',
//                'active' => true,
//                'submenu' => [
//                    [
//                        'name' => '企微通讯录',
//                        'index' => 'transform.wechat/index',
//                        'uris' => [
//
//                        ]
//                    ],
//                ]
//            ],
            [
                'name' => '答题赚积分',
                'index' => 'transform.qa/boxquestion',
                'active' => true,
                'submenu' => [
                    [
                        'name' => '试卷分类',
                        'index' => 'transform.qa/type',
                        'uris' => ['transform.qa/type']
                    ],
                    [
                        'name' => '试卷管理',
                        'index' => 'transform.qa/boxquestion',
                        'uris' => ['transform.qa/boxquestion']
                    ],
                ]
            ],

		],
	],
	
    'user' => [
        'name' => '用户管理',
        'icon' => 'icon-user',
        'index' => 'user/index',
        'submenu' => [
            [
                'name' => '用户列表',
                'index' => 'user/index',
            ],
            [
                'name' => '会员等级',
                'active' => true,
                'submenu' => [
                    [
                        'name' => '等级管理',
                        'index' => 'user.grade/index',
                        'uris' => [
                            'user.grade/index',
                            'user.grade/add',
                            'user.grade/edit',
                            'user.grade/delete',
                        ]
                    ],
                ]
            ],
            [
                'name' => '余额记录',
                'active' => true,
                'submenu' => [
                    [
                        'name' => '充值记录',
                        'index' => 'user.recharge/order',
                    ],
                    [
                        'name' => '余额明细',
                        'index' => 'user.balance/log',
                    ],
                ]
            ],
        ]
    ],
    'market' => [
        'name' => '营销管理',
        'icon' => 'icon-marketing',
        'index' => 'market.coupon/index',
        'submenu' => [
            [
                'name' => '优惠券',
//                'active' => true,
                'submenu' => [
                    [
                        'name' => '优惠券列表',
                        'index' => 'market.coupon/index',
                        'uris' => [
                            'market.coupon/index',
                            'market.coupon/add',
                            'market.coupon/edit',
                        ]
                    ],
                     [
                        'name' => '推送优惠券',
                        'index' => 'market.push/send',
                    ],
                    [
                        'name' => '领取记录',
                        'index' => 'market.coupon/receive'
                    ],
                ]
            ],
//            [
//                'name' => '医疗共建',
//                'submenu' => [
//                    [
//                        'name' => '共建订单',
//                        'index' => 'market.jointly.order/index',
//                        'uris' => [
//                            'market.jointly.order/index',
//
//                        ]
//                    ],
//                ]
//            ],
            [
                'name' => '用户充值',
                'submenu' => [
                    [
                        'name' => '充值套餐',
                        'index' => 'market.recharge.plan/index',
                        'uris' => [
                            'market.recharge.plan/index',
                            'market.recharge.plan/add',
                            'market.recharge.plan/edit',
                        ]
                    ],
                    [
                        'name' => '充值设置',
                        'index' => 'market.recharge/setting'
                    ],
                ]
            ],
            [
                'name' => '积分管理',
                'submenu' => [
                    [
                        'name' => '积分设置',
                        'index' => 'market.points/setting'
                    ],
                    [
                        'name' => '积分明细',
                        'index' => 'market.points/log'
                    ],
                ]
            ],
//             [
//                 'name' => '消息推送',
//                 'submenu' => [
//                     [
//                         'name' => '发送消息',
//                         'index' => 'market.push/send',
//                     ],
//                     [
//                         'name' => '活跃用户',
//                         'index' => 'market.push/user',
//                     ],
// //                    [
// //                        'name' => '发送日志',
// //                        'index' => 'market.push/log',
// //                    ],
//                 ]
//             ],
            [
                'name' => '满额包邮',
                'index' => 'market.basic/full_free',
            ],
        ],
    ],
	'shop' => [
	    'name' => '门店管理',
	    'icon' => 'icon-shop',
	    'index' => 'shop/index',
	    'submenu' => [
	        [
	            'name' => '门店管理',
	            'active' => true,
	            'index' => 'shop/index',
	            'submenu' => [
	                [
	                    'name' => '门店列表',
	                    'index' => 'shop/index',
	                    'uris' => [
	                        'shop/index',
	                        'shop/add',
	                        'shop/edit',
	                    ]
	                ],
	                [
	                    'name' => '店员管理',
	                    'index' => 'shop.clerk/index',
	                    'uris' => [
	                        'shop.clerk/index',
	                        'shop.clerk/add',
	                        'shop.clerk/edit',
	                    ]
	                ],
	            ]
	        ],
	        [
	            'name' => '订单核销记录',
	            'index' => 'shop.order/index',
	        ]
	    ]
	],
	'goods' => [
	    'name' => '商品管理',
	    'icon' => 'icon-shop',
	    'index' => 'goods/index',
	    'submenu' => [
	        [
	            'name' => '商品列表',
	            'index' => 'goods/index',
	            'uris' => [
	                'goods/index',
	                'goods/add',
	                'goods/edit',
	                'goods/copy'
	            ],
	        ],
	        [
	            'name' => '商品分类',
	            'index' => 'goods.category/index',
	            'uris' => [
	                'goods.category/index',
	                'goods.category/add',
	                'goods.category/edit',
	            ],
	        ],
			[
			    'name' => '商品厂商列表',
			    'index' => 'goods.shoptwo/index',
			    'uris' => [
			        'goods.shoptwo/index',
			        'goods.shoptwo/add',
			        'goods.shoptwo/edit',
			    ],
			],
	        [
	            'name' => '商品订单评价',
	            'index' => 'goods.comment/index',
	            'uris' => [
	                'goods.comment/index',
	                'goods.comment/detail',
	            ],
	        ]
	    ],
	],
	'order' => [
	    'name' => '订单管理',
	    'icon' => 'icon-shop',
	    'index' => 'order/delivery_list',
	    'submenu' => [
	        [
	            'name' => '待发货/待核销',
	            'index' => 'order/delivery_list',
	        ],
	        [
	            'name' => '待收货',
	            'index' => 'order/receipt_list',
	        ],
	        [
	            'name' => '待付款',
	            'index' => 'order/pay_list',
	        ],
	        [
	            'name' => '已完成/全核销',
	            'index' => 'order/complete_list',
	
	        ],
	        [
	            'name' => '已取消',
	            'index' => 'order/cancel_list',
	        ],
			[
			    'name' => '全部订单',
			    'index' => 'order/all_list',
			],
	        [
	            'name' => '售后管理',
	            'index' => 'order.refund/index',
	            'uris' => [
	                'order.refund/index',
	                'order.refund/detail',
	            ]
	        ],
	    ]
	],
	'content' => [
	    'name' => '文章 / 文件',
	    'icon' => 'icon-wenzhang',
	    'index' => 'content.article/index',
	    'submenu' => [
	        [
	            'name' => '文章管理',
	            'active' => true,
	            'submenu' => [
	                [
	                    'name' => '文章列表',
	                    'index' => 'content.article/index',
	                    'uris' => [
	                        'content.article/index',
	                        'content.article/add',
	                        'content.article/edit',
	                    ]
	                ],
	                [
	                    'name' => '文章分类',
	                    'index' => 'content.article.category/index',
	                    'uris' => [
	                        'content.article.category/index',
	                        'content.article.category/add',
	                        'content.article.category/edit',
	                    ]
	                ],
	            ]
	        ],
	        [
	            'name' => '文件库管理',
	            'submenu' => [
	                [
	                    'name' => '文件分组',
	                    'index' => 'content.files.group/index',
	                    'uris' => [
	                        'content.files.group/index',
	                        'content.files.group/add',
	                        'content.files.group/edit',
	                    ]
	                ],
	                [
	                    'name' => '文件列表',
	                    'index' => 'content.files/index'
	                ],
	                [
	                    'name' => '回收站',
	                    'index' => 'content.files/recycle',
	                ],
	            ]
	        ],
	    ]
	],
    'apps' => [
        'name' => '应用中心',
        'icon' => 'icon-application',
        'is_svg' => true,   // 多色图标
        'index' => 'apps.dealer.apply/index',
        'submenu' => [
            [
                'name' => '分销中心',
                'submenu' => [
                    [
                        'name' => '入驻申请',
                        'index' => 'apps.dealer.apply/index',
                    ],
                    [
                        'name' => '分销商用户',
                        'index' => 'apps.dealer.user/index',
                        'uris' => [
                            'apps.dealer.user/index',
                            'apps.dealer.user/edit',
                            'apps.dealer.user/fans',
                        ]
                    ],
                    [
                        'name' => '分销订单',
                        'index' => 'apps.dealer.order/index',
                    ],
                    [
                        'name' => '提现申请',
                        'index' => 'apps.dealer.withdraw/index',
                    ],
                    [
                        'name' => '分销设置',
                        'index' => 'apps.dealer.setting/index',
                    ],
                    [
                        'name' => '分销海报',
                        'index' => 'apps.dealer.setting/qrcode',
                    ],
                ]
            ],
            [
                'name' => '拼团管理',
                'submenu' => [
                    [
                        'name' => '商品分类',
                        'index' => 'apps.sharing.category/index',
                        'uris' => [
                            'apps.sharing.category/index',
                            'apps.sharing.category/add',
                            'apps.sharing.category/edit',
                        ]
                    ],
                    [
                        'name' => '商品列表',
                        'index' => 'apps.sharing.goods/index',
                        'uris' => [
                            'apps.sharing.goods/index',
                            'apps.sharing.goods/add',
                            'apps.sharing.goods/edit',
                            'apps.sharing.goods/copy',
                            'apps.sharing.goods/copy_master',
                        ]
                    ],
                    [
                        'name' => '拼单管理',
                        'index' => 'apps.sharing.active/index',
                        'uris' => [
                            'apps.sharing.active/index',
                            'apps.sharing.active/users',
                        ]
                    ],
                    [
                        'name' => '订单管理',
                        'index' => 'apps.sharing.order/index',
                        'uris' => [
                            'apps.sharing.order/index',
                            'apps.sharing.order/detail',
                            'apps.sharing.order.operate/batchdelivery'
                        ]
                    ],
                    [
                        'name' => '售后管理',
                        'index' => 'apps.sharing.order.refund/index',
                        'uris' => [
                            'apps.sharing.order.refund/index',
                            'apps.sharing.order.refund/detail',
                        ]
                    ],
                    [
                        'name' => '商品评价',
                        'index' => 'apps.sharing.comment/index',
                        'uris' => [
                            'apps.sharing.comment/index',
                            'apps.sharing.comment/detail',
                        ],
                    ],
                    [
                        'name' => '拼团设置',
                        'index' => 'apps.sharing.setting/index'
                    ]
                ]
            ],
            [
                'name' => '砍价活动',
                'index' => 'apps.bargain.active/index',
                'submenu' => [
                    [
                        'name' => '活动列表',
                        'index' => 'apps.bargain.active/index',
                        'uris' => [
                            'apps.bargain.active/index',
                            'apps.bargain.active/add',
                            'apps.bargain.active/edit',
                            'apps.bargain.active/delete',
                        ],
                    ],
                    [
                        'name' => '砍价记录',
                        'index' => 'apps.bargain.task/index',
                        'uris' => [
                            'apps.bargain.task/index',
                            'apps.bargain.task/add',
                            'apps.bargain.task/edit',
                            'apps.bargain.task/delete',
                            'apps.bargain.task/help',
                        ],
                    ],
                    [
                        'name' => '砍价设置',
                        'index' => 'apps.bargain.setting/index',
                    ]
                ]
            ],
            [
                'name' => '整点秒杀',
                'index' => 'apps.sharp.goods/index',
                'submenu' => [
                    [
                        'name' => '秒杀商品',
                        'index' => 'apps.sharp.goods/index',
                        'uris' => [
                            'apps.sharp.goods/index',
                            'apps.sharp.goods/add',
                            'apps.sharp.goods/select',
                            'apps.sharp.goods/edit',
                            'apps.sharp.goods/delete',
                        ],
                    ],
                    [
                        'name' => '活动会场',
                        'index' => 'apps.sharp.active/index',
                        'uris' => [
                            'apps.sharp.active/index',
                            'apps.sharp.active/add',
                            'apps.sharp.active/edit',
                            'apps.sharp.active/state',
                            'apps.sharp.active/delete',

                            'apps.sharp.active_time/index',
                            'apps.sharp.active_time/add',
                            'apps.sharp.active_time/edit',
                            'apps.sharp.active_time/state',
                            'apps.sharp.active_time/delete',
                        ],
                    ],
                    [
                        'name' => '基础设置',
                        'index' => 'apps.sharp.setting/index',
                    ]
                ]
            ],
            [
                'name' => '好物圈',
                'index' => 'apps.wow.shoping/index',
                'submenu' => [
                    [
                        'name' => '商品收藏',
                        'index' => 'apps.wow.shoping/index',
                    ],
                    [
                        'name' => '订单信息',
                        'index' => 'apps.wow.order/index',
                    ],
                    [
                        'name' => '基础设置',
                        'index' => 'apps.wow.setting/index',
                    ]
                ]
            ],
            [
                'name' => '小程序直播',
                'index' => 'apps.live.room/index',
                'submenu' => [
                    [
                        'name' => '直播间管理',
                        'index' => 'apps.live.room/index',
                    ],
                ]
            ],
        ]
    ],
     'wxapp' => [
        'name' => '小程序设置',
        'icon' => 'icon-wxapp',
        'color' => '#36b313',
        'index' => 'wxapp.page/index',
        'submenu' => [
      
            [
                'name' => '页面管理',
                'active' => true,
                'submenu' => [
                    [
                        'name' => '页面设计',
                        'index' => 'wxapp.page/index',
                        'uris' => [
                            'wxapp.page/index',
                            'wxapp.page/add',
                            'wxapp.page/edit',
                        ]
                    ],
                    [
                        'name' => '分类模板',
                        'index' => 'wxapp.page/category'
                    ],
                    [
                        'name' => '页面链接',
                        'index' => 'wxapp.page/links'
                    ]
                    
                ]
            ],
                [
                'name' => '导航管理',
                'index' => 'wxapp.nav/index',
                'uris' => [
                    'wxapp.nav/index',
                    'wxapp.nav/add',
                    'wxapp.nav/edit'
                ]
            ],
                    [
                'name' => '其他设置',
                'index' => 'wxapp/tabbar'
            ],
            [
                'name' => '订阅消息',
                'index' => 'wxapp.submsg/index',
                'uris' => [
                    'wxapp.submsg/index',
                ]
            ],
                  [
                'name' => '支付参数',
                'index' => 'wxapp/setting',
                  'uris' => [
                    'wxapp/setting',
                ]
            ],
            [
                'name' => '帮助中心',
                'index' => 'wxapp.help/index',
                'uris' => [
                    'wxapp.help/index',
                    'wxapp.help/add',
                    'wxapp.help/edit'
                ]
            ],
            
        ],
    ],
	'statistics' => [
	    'name' => '数据统计',
	    'icon' => 'icon-qushitu',
	    'index' => 'statistics.data/index',
	],
    'setting' => [
        'name' => '基本设置',
        'icon' => 'icon-setting',
        'index' => 'setting/store',
        'submenu' => [
            [
                'name' => '商城设置',
                'index' => 'setting/store',
            ],
            [
                'name' => '交易设置',
                'index' => 'setting/trade',
            ],
            [
                'name' => '运费模板',
                'index' => 'setting.delivery/index',
                'uris' => [
                    'setting.delivery/index',
                    'setting.delivery/add',
                    'setting.delivery/edit',
                ],
            ],
            [
                'name' => '物流公司',
                'index' => 'setting.express/index',
                'uris' => [
                    'setting.express/index',
                    'setting.express/add',
                    'setting.express/edit',
                ],
            ],
            [
                'name' => '短信通知',
                'index' => 'setting/sms'
            ],
            //    [
            //        'name' => '模板消息',
            //        'index' => 'setting/tplmsg',
            //        'uris' => [
            //            'setting/tplmsg',
            //            'setting.help/tplmsg'
            //
            //        ],
            //    ],
            [
                'name' => '退货地址',
                'index' => 'setting.address/index',
                'uris' => [
                    'setting.address/index',
                    'setting.address/add',
                    'setting.address/edit',
                ],
            ],
            [
                'name' => '上传设置',
                'index' => 'setting/storage',
            ],
            [
                'name' => '小票打印机',
                'submenu' => [
                    [
                        'name' => '打印机管理',
                        'index' => 'setting.printer/index',
                        'uris' => [
                            'setting.printer/index',
                            'setting.printer/add',
                            'setting.printer/edit'
                        ]
                    ],
                    [
                        'name' => '打印设置',
                        'index' => 'setting/printer'
                    ]
                ]
            ],
            [
                'name' => '其他设置',
                'submenu' => [
                    [
                        'name' => '清理缓存',
                        'index' => 'setting.cache/clear'
                    ]
                ]
            ]
        ],
    ],
     'store' => [
        'name' => '管理列表',
        'icon' => 'icon-guanliyuan',
        'index' => 'store.user/index',
        'submenu' => [
            [
                'name' => '管理员列表',
                'index' => 'store.user/index',
                'uris' => [
                    'store.user/index',
                    'store.user/add',
                    'store.user/edit',
                    'store.user/delete',
                ],
            ],
            [
                'name' => '角色管理',
                'index' => 'store.role/index',
                'uris' => [
                    'store.role/index',
                    'store.role/add',
                    'store.role/edit',
                    'store.role/delete',
                ],
            ],
        ]
    ],
];
